<?php
require_once("config.php");

if (false && APP_DEBUG) {
    ini_set('display_errors', 'On');
    error_reporting(E_ALL);
} else {
    error_reporting(0);
}
require_once("source/common.php");
require_once("source/myfun.php");

$tp = $_GET["tp"];

if(empty($tp)){
    $tp = 'indexnew';
}

$tpl = init_smarty();
$key = '2Xp95kiGn#3p';
$uid = (int)$_GET['uid'];
$imei = $_GET['imei'];
$pt = $_GET['pt'];
$ver = $_GET['ver'];
$appid = (int)$_GET['appid'];
$sign = $_GET['sign'];

$time = time();

$tpl->assign("uid", $uid);
$tpl->assign("imei", $imei);
$tpl->assign("pt", $pt);
$tpl->assign("ver", $ver);
$tpl->assign("appid", $appid);
$tpl->assign("sign", $sign);
$tpl->assign("tp", $tp);
include_once("wx/controller/{$tp}.php");


?>